package com.jt.service;

import com.jt.dao.UserDao;
import com.jt.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service(value = "userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userdao;

    public void setUserdao(UserDao userdao) {
        this.userdao = userdao;

    }

    @Override
    public void addUser(User user) {
        System.out.println("向dao添加user");
        userdao.addUser(user);
    }
}
